package test;

import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Date;

public interface IDBConnecting {

	public Connection createConnection() throws ClassNotFoundException, SQLException;

	public int getCurrId(String currName) throws SQLException, ClassNotFoundException;

	public void setCurr(String currName, String currShort);

	public void setCurrValue(Date date, BigDecimal bd, int idcurr) throws ClassNotFoundException, SQLException;

	public boolean checkCurrInAvgTab(Date date, int id) throws ClassNotFoundException, SQLException;

	public boolean checkDateInAvgTab(Date date) throws ClassNotFoundException, SQLException;

	public String getBiggestCurrencyNameDifference() throws ClassNotFoundException, SQLException;

	public void setCurrencyToCountry(String currShort, String country) throws CountryHasThisCurrency, ThisShortcutIsIncorrect;

	public CurrencyInfoClass getCurrencyShortcutAndVal(Date date, String type) throws ClassNotFoundException, SQLException;
}
